package com.un.ebs.sale.domain;

import java.util.Date;
import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import com.un.ebs.sale.enums.SaleOrderTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (SaleOrderItemExt)表实体类
 *
 * @author liubo
 * @since 2020-09-01 12:20:21
 */
@Data
@Component
@TableName("v_sale_order_item_ext")
@SuppressWarnings("serial")
public class SaleOrderItemExt extends Model<SaleOrderItemExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "order_id", length = 40, precision = 0)
    private String orderId;

    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "qty", length = 18, precision = 4)
    private Double qty;

    @DbField(name = "price", length = 18, precision = 2)
    private Double price;

    @DbField(name = "code", length = 100, precision = 0)
    private String code;

    @DbField(name = "contract_code", length = 100, precision = 0)
    private String contractCode;

    @DbField(name = "customer_ent_id", length = 40, precision = 0)
    private String customerEntId;

    @DbField(name = "customer_ent_name", length = 40, precision = 0)
    private String customerEntName;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "submit_status", length = -1, precision = 0)
    private Boolean submitStatus;

    @DbField(name = "submit_time", length = -1, precision = 0)
    private Date submitTime;

    @DbField(name = "submit_at", length = 40, precision = 0)
    private String submitAt;

    @DbField(name = "submit_at_name", length = 100, precision = 0)
    private String submitAtName;

    @DbField(name = "personnel_id", length = 40, precision = 0)
    private String personnelId;

    @DbField(name = "personnel_name", length = 100, precision = 0)
    private String personnelName;

    @DbField(name = "plan_deliver_date", length = -1, precision = 0)
    private Date planDeliverDate;

    @DbField(name = "deliver_time", length = -1, precision = 0)
    private Date deliverTime;

    @DbField(name = "deliver_at", length = 40, precision = 0)
    private String deliverAt;

    @DbField(name = "deliver_at_name", length = 100, precision = 0)
    private String deliverAtName;

    @DbField(name = "deliver_status", length = -1, precision = 0)
    private Boolean deliverStatus;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "name_as", length = 100, precision = 0)
    private String nameAs;

    @DbField(name = "class_id", length = 40, precision = 0)
    private String classId;

    @DbField(name = "class_name", length = 40, precision = 0)
    private String className;

    @DbField(name = "purchase_type", length = -1, precision = 0)
    private ProductPurchaseTypeEnum purchaseType;

    @DbField(name = "deliver_count", length = 38, precision = 4)
    private Double deliverCount;

    @DbField(name = "sale_deliver_count", length = 38, precision = 4)
    private Double saleDeliverCount;

    @DbField(name = "inventory_qty", length = 38, precision = 6)
    private Double inventoryQty;

    @DbField(name = "order_type", length = -1, precision = 0)
    private SaleOrderTypeEnum orderType;

    @DbField(name = "remark", length = 100, precision = 0)
    private String remark;


}